package ru.xeden.web.html.module;

import ru.xeden.core.exception.CoreException;

public class ModuleException
    extends CoreException
{
    public static final String PREFIX = "xeden.web.html.module.err.";

    public static final String IDS_MODULE_INITIALIZED_ALREADY = "module_initialized_already";
    public static final String IDS_MODULE_IS_NOT_INITIALIZED = "module_is_not_initialized";
    
    public ModuleException(String errorId)
    {
        super(errorId);
    }

    public ModuleException(Exception exception)
    {
        super(exception);
    }

    public ModuleException(String errorId, Object arg)
    {
        super(errorId, arg);
    }

    public ModuleException(String errorId, Object [] args)
    {
        super(errorId, args);
    }
    
    @Override
    protected String getPrefix()
    {
        return PREFIX;
    }
}
